package com.hourse.app.controller.web;

import com.hourse.app.service.ConfigCurrencyService;
import com.hourse.platform.vo.PageData;
import com.hourse.platform.vo.ResultMsg;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @作者 ：lichenguang
 * @描述 ：【币种信息】
 * @创建 ：2022/3/25 10:02
 */
@Api(tags = "用户端-币种服务")
@RestController
@RequestMapping("web/currency")
@Slf4j
public class WebCurrencyController {

  @Autowired
  private ConfigCurrencyService configCurrencyService;

  @ApiOperation(value = "配置币种-查询")
  @SneakyThrows
  @GetMapping(value = "list")
  public PageData publicDeal() {

    List<Object> list = configCurrencyService.list();

    return new ResultMsg<>(list);
  }

}
